package com.ktgj.service.service.impl;

import java.util.List;
import com.ktgj.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.service.mapper.JtViphallMapper;
import com.ktgj.service.domain.JtViphall;
import com.ktgj.service.service.IJtViphallService;

/**
 * 鲸图厅原始数据
Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-09-03
 */
@Service
public class JtViphallServiceImpl implements IJtViphallService 
{
    @Autowired
    private JtViphallMapper jtViphallMapper;

    /**
     * 查询鲸图厅原始数据

     * 
     * @param id 鲸图厅原始数据
ID
     * @return 鲸图厅原始数据

     */
    @Override
    public JtViphall selectJtViphallById(Long id)
    {
        return jtViphallMapper.selectJtViphallById(id);
    }

    /**
     * 查询鲸图厅原始数据
列表
     * 
     * @param jtViphall 鲸图厅原始数据

     * @return 鲸图厅原始数据

     */
    @Override
    public List<JtViphall> selectJtViphallList(JtViphall jtViphall)
    {
        return jtViphallMapper.selectJtViphallList(jtViphall);
    }

    /**
     * 新增鲸图厅原始数据

     * 
     * @param jtViphall 鲸图厅原始数据

     * @return 结果
     */
    @Override
    public int insertJtViphall(JtViphall jtViphall)
    {
        jtViphall.setCreateTime(DateUtils.getNowDate());
        return jtViphallMapper.insertJtViphall(jtViphall);
    }

    /**
     * 修改鲸图厅原始数据

     * 
     * @param jtViphall 鲸图厅原始数据

     * @return 结果
     */
    @Override
    public int updateJtViphall(JtViphall jtViphall)
    {
        jtViphall.setUpdateTime(DateUtils.getNowDate());
        return jtViphallMapper.updateJtViphall(jtViphall);
    }

    /**
     * 批量删除鲸图厅原始数据

     * 
     * @param ids 需要删除的鲸图厅原始数据
ID
     * @return 结果
     */
    @Override
    public int deleteJtViphallByIds(Long[] ids)
    {
        return jtViphallMapper.deleteJtViphallByIds(ids);
    }

    /**
     * 删除鲸图厅原始数据
信息
     * 
     * @param id 鲸图厅原始数据
ID
     * @return 结果
     */
    @Override
    public int deleteJtViphallById(Long id)
    {
        return jtViphallMapper.deleteJtViphallById(id);
    }
}
